package com.sl.au.entity;

import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 事件登记
 * 
 * @author 刘昆
 *
 */
@Entity
@Table(name = "sl_wcsi_EventRegister")
public class EventRegister extends Root{
	
	@Column(nullable = true,name="registerEventName")
	private String registerEventName;//登记名称
	
	@Column(nullable = true,name="registerEventContent")
	private String registerEventContent;//登记详细内容
	
	@Column(nullable = true,name="registerEventMemo")
	private String registerEventMemo;//登记详细备注
	
	@Column(nullable = true,name="registerEventIdentify")
	private String registerEventIdentify;//登记编码
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventType")
	private EventType registerEventType;//登记事件类型
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventEvaluateLevel")
	private Grading registerEventEvaluateLevel;//登记事件评价级别(7级编码,用户扣分系统)
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventSeriousLevel")
	private Option registerEventSeriousLevel;//登记事件严重等级
	
	@Column(nullable = true,name="registerEventReportTime")
	private Date registerEventReportTime;//发生时间
	
	@Column(nullable = true,name="registerEventAccTime")
	private Date registerEventAccTime;//登记时间
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventCreateUser")
	private User registerEventCreateUser;//登记人
	
	@Column(nullable = true,name="registerEventImgAdress")
	private String registerEventImgAdress;//登记图片地址
	
	@Column(nullable = true,name="longitude")
	private double longitude;//事件发生经度
	
	@Column(nullable = true,name="latitude")
	private double latitude;//事件发生纬度
	
	@Column(nullable = true,name="acceptLimitSpan")
	private double acceptLimitSpan;//接收时限
	
	@Column(nullable = true,name="dealLimitSpan")
	private double dealLimitSpan;//处理时限
	
	@Column(nullable = true,name="registerEventAdress")
	private String registerEventAdress;//登记事件发生地点描述
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventToNetGrid")
	private GridAreaInfo registerEventToNetGrid;//事件所属网格
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventToReportEvent")
	private EventReport registerEventToReportEvent;//登记事件所属上报事件
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventToPartBaseInfo")
	private PartBaseInfo registerEventToPartBaseInfo;//登记事件关联部件
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventHierarchy")
	private Hierarchy registerEventHierarchy;//登记事件主管部门
	
	@ManyToOne 
	@JoinColumn(nullable = true,name="registerEventState")
	private Option registerEventState;//内部事件流转状态
	

	public Date getRegisterEventReportTime() {
		return registerEventReportTime;
	}

	public void setRegisterEventReportTime(Date registerEventReportTime) {
		this.registerEventReportTime = registerEventReportTime;
	}

	public Option getRegisterEventState() {
		return registerEventState;
	}

	public void setRegisterEventState(Option registerEventState) {
		this.registerEventState = registerEventState;
	}

	public EventType getRegisterEventType() {
		return registerEventType;
	}

	public void setRegisterEventType(EventType registerEventType) {
		this.registerEventType = registerEventType;
	}

	public Hierarchy getRegisterEventHierarchy() {
		return registerEventHierarchy;
	}

	public void setRegisterEventHierarchy(Hierarchy registerEventHierarchy) {
		this.registerEventHierarchy = registerEventHierarchy;
	}

	public double getAcceptLimitSpan() {
		return acceptLimitSpan;
	}

	public void setAcceptLimitSpan(double acceptLimitSpan) {
		this.acceptLimitSpan = acceptLimitSpan;
	}

	public double getDealLimitSpan() {
		return dealLimitSpan;
	}

	public void setDealLimitSpan(double dealLimitSpan) {
		this.dealLimitSpan = dealLimitSpan;
	}

	public GridAreaInfo getRegisterEventToNetGrid() {
		return registerEventToNetGrid;
	}

	public void setRegisterEventToNetGrid(GridAreaInfo registerEventToNetGrid) {
		this.registerEventToNetGrid = registerEventToNetGrid;
	}

	public String getRegisterEventMemo() {
		return registerEventMemo;
	}

	public void setRegisterEventMemo(String registerEventMemo) {
		this.registerEventMemo = registerEventMemo;
	}

	public String getRegisterEventName() {
		return registerEventName;
	}

	public void setRegisterEventName(String registerEventName) {
		this.registerEventName = registerEventName;
	}

	public String getRegisterEventContent() {
		return registerEventContent;
	}

	public void setRegisterEventContent(String registerEventContent) {
		this.registerEventContent = registerEventContent;
	}

	public String getRegisterEventIdentify() {
		return registerEventIdentify;
	}

	public void setRegisterEventIdentify(String registerEventIdentify) {
		this.registerEventIdentify = registerEventIdentify;
	}

	public Grading getRegisterEventEvaluateLevel() {
		return registerEventEvaluateLevel;
	}

	public void setRegisterEventEvaluateLevel(Grading registerEventEvaluateLevel) {
		this.registerEventEvaluateLevel = registerEventEvaluateLevel;
	}

	public Option getRegisterEventSeriousLevel() {
		return registerEventSeriousLevel;
	}

	public void setRegisterEventSeriousLevel(Option registerEventSeriousLevel) {
		this.registerEventSeriousLevel = registerEventSeriousLevel;
	}

	public Date getRegisterEventAccTime() {
		return registerEventAccTime;
	}

	public void setRegisterEventAccTime(Date registerEventAccTime) {
		this.registerEventAccTime = registerEventAccTime;
	}

	public User getRegisterEventCreateUser() {
		return registerEventCreateUser;
	}

	public void setRegisterEventCreateUser(User registerEventCreateUser) {
		this.registerEventCreateUser = registerEventCreateUser;
	}

	public String getRegisterEventImgAdress() {
		return registerEventImgAdress;
	}

	public void setRegisterEventImgAdress(String registerEventImgAdress) {
		this.registerEventImgAdress = registerEventImgAdress;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public String getRegisterEventAdress() {
		return registerEventAdress;
	}

	public void setRegisterEventAdress(String registerEventAdress) {
		this.registerEventAdress = registerEventAdress;
	}

	public EventReport getRegisterEventToReportEvent() {
		return registerEventToReportEvent;
	}

	public void setRegisterEventToReportEvent(EventReport registerEventToReportEvent) {
		this.registerEventToReportEvent = registerEventToReportEvent;
	}

	public PartBaseInfo getRegisterEventToPartBaseInfo() {
		return registerEventToPartBaseInfo;
	}

	public void setRegisterEventToPartBaseInfo(PartBaseInfo registerEventToPartBaseInfo) {
		this.registerEventToPartBaseInfo = registerEventToPartBaseInfo;
	}
	
	
}
